<?php

namespace Ignus\View\Node\Expression;

use Ignus\View\Node\Expression\Name;
use Ignus\View\Compiler;

class AssignName extends Name
{
    public function compile(Compiler $compiler)
    {
        $compiler->raw('$context[')
            ->string($this->getAttribute('name'))
            ->raw(']');
    }
}
